
#define MAIN_C

#include <QApplication>
#include <QGLWidget>
#include <iostream>

#include "mainwindow.h"

int main(int argc, char *argv[])
{
  QApplication app(argc, argv);

  if (!QGLFormat::hasOpenGL()) {
    std::cerr << "This system has no OpenGL support" << std::endl;
    return 1;
  }

  // create new windows and show
  MainWindow *mainWin = new MainWindow;
  mainWin->show();
  return app.exec();
}
